function collect_same_elements(collection_a, collection_b) {
  //在这里写入代码
  let arr = new Array();
  for(let i of collection_a)
  
  for(let j of collection_b){
  if(i==j)
  arr.push(i);}
  return arr;
}

module.exports = collect_same_elements;
